﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Winform.IBLL;

namespace WinFormWithAutofac
{
    public partial class Form1 : Form
    {
        private readonly ITest _test;
        public Form1(ITest test)
        {
            _test = test;
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(_test.GetData("你好，"));
        }
    }
}
